package com.ruoyi.web.controller.demo.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * sys_schedul_zhi对象 sys_schedul_zhi
 * 
 * @author ruoyi
 * @date 2022-12-27
 */
public class SysSchedulZhi extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键自增Id 主键 */
    @Excel(name = "主键自增Id 主键")
    private Long id;

    /** 值班名称 */
    @Excel(name = "值班名称")
    private String name;

    /** 排班名称 联查排班 */
    @Excel(name = "排班名称 联查排班")
    private Long paiName;

    /** 所属部门 联查部门 */
    @Excel(name = "所属部门 联查部门")
    private Long deptId;

    /** 排班id 联查排班 */
    private Long paiId;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createName;

    /** 值班人 */
    @Excel(name = "值班人")
    private String workName;

    /** 状态 */
    private Long state;

    /** 联系方式 */
    private String phone;

    /** 值班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "值班时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date workTime;

    /** 备注 */
    private String text;

    /** schedul_pai_relate信息 */
    private List<SysSchedulPaiRelate> sysSchedulPaiRelateList;

    private SysSchedulPaiRelate relate;

    public SysSchedulPaiRelate getRelate() {
        return relate;
    }


    private String zhiName;
    private String createrName;
    private String deptName;
    private Date beginTime;

    public String getZhiName() {
        return zhiName;
    }

    public void setZhiName(String zhiName) {
        this.zhiName = zhiName;
    }

    public String getCreaterName() {
        return createrName;
    }

    public void setCreaterName(String createrName) {
        this.createrName = createrName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public void setRelate(SysSchedulPaiRelate relate) {
        this.relate = relate;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPaiName(Long paiName) 
    {
        this.paiName = paiName;
    }

    public Long getPaiName() 
    {
        return paiName;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setPaiId(Long paiId) 
    {
        this.paiId = paiId;
    }

    public Long getPaiId() 
    {
        return paiId;
    }
    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }
    public void setWorkName(String workName) 
    {
        this.workName = workName;
    }

    public String getWorkName() 
    {
        return workName;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setWorkTime(Date workTime) 
    {
        this.workTime = workTime;
    }

    public Date getWorkTime() 
    {
        return workTime;
    }
    public void setText(String text) 
    {
        this.text = text;
    }

    public String getText() 
    {
        return text;
    }

    public List<SysSchedulPaiRelate> getSysSchedulPaiRelateList()
    {
        return sysSchedulPaiRelateList;
    }

    public void setSysSchedulPaiRelateList(List<SysSchedulPaiRelate> sysSchedulPaiRelateList)
    {
        this.sysSchedulPaiRelateList = sysSchedulPaiRelateList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("paiName", getPaiName())
            .append("deptId", getDeptId())
            .append("paiId", getPaiId())
            .append("createName", getCreateName())
            .append("createTime", getCreateTime())
            .append("workName", getWorkName())
            .append("state", getState())
            .append("phone", getPhone())
            .append("workTime", getWorkTime())
            .append("text", getText())
            .append("sysSchedulPaiRelateList", getSysSchedulPaiRelateList())
            .toString();
    }
}
